﻿using System;
using Swashbuckle.AspNetCore.Annotations;

namespace Leo.Awesome.DictionaryManagement.Dtos
{
    [SwaggerSchema(Required = new[] { "创建或更新DTO" })]
    public class DictionaryItemCreateUpdateInput
    {
        public Guid? Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }


        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }


        /// <summary>
        /// 描述信息
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 排序字段
        /// </summary>
        public int OrderIndex { get; set; }


        /// <summary>
        /// 所属字典项
        /// </summary>
        public Guid DictionaryId { get; set; }


        /// <summary>
        /// 是否为系统字段
        /// </summary>
        public bool IsSystem { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; }  

    }
}
